package ae.pcfc.etks.online.itworx.ehs.web.enums;

import java.util.HashMap;
import java.util.Map;

public enum IMSRequestStatus {

	RE_INSPECTION("REINSPECTION"),
	IN_PROGRESS("IN-PROGRSS"),
	IN_PROGRESS_2("IN_PROGRSS"),
	IN_PROGRESS_3("IN-PROGRESS"),
	IN_PROGRESS_4("IN_PROGRESS"),
	CLOSED("CLOSED");
	
	private String statusName;
	
	private static Map<String, IMSRequestStatus> statusMap = new HashMap<String, IMSRequestStatus>();
	static {	
		statusMap.put(RE_INSPECTION.getStatusName(), IMSRequestStatus.RE_INSPECTION);
		statusMap.put(IN_PROGRESS.getStatusName(), IMSRequestStatus.IN_PROGRESS);
		statusMap.put(IN_PROGRESS_2.getStatusName(),IMSRequestStatus.IN_PROGRESS_2);
		statusMap.put(IN_PROGRESS_3.getStatusName(),IMSRequestStatus.IN_PROGRESS_3);
		statusMap.put(IN_PROGRESS_4.getStatusName(),IMSRequestStatus.IN_PROGRESS_4);
		statusMap.put(CLOSED.getStatusName(), IMSRequestStatus.CLOSED);
	}
	
	public String getStatusName() {
		return statusName;
	}

	private IMSRequestStatus(String statusName) {
		this.statusName = statusName;
	}
	
	public static IMSRequestStatus getStatus(String name){
		return statusMap.get(name);
	}
	
}
